import request from './request';

export function getRooms() {
  return request.get('/rooms');
}

export function addRoom(data) {
  return request.post('/rooms', data);
}

export function updateRoom(data) {
  return request.put('/rooms', data);
}

export function deleteRoom(id) {
  return request.delete(`/rooms/${id}`);
} 